$(function(){
		var f_id = GetQueryString("f_id");
        var url=ApiUrl+"/index.php?act=franchiser&op=franchiser_detail&f_id="+f_id;
    	$.ajax({
    		url:url,
    		type:'get',
    		dataType:'json',
    		success:function(result){
				result.datas.WapSiteUrl = WapSiteUrl;
				template.helper('encodeURI',function(str){
					return encodeURI(encodeURI(str));
				});
				var html = template.render('home_body', result.datas);

				var maxWidth = $(document.body).width();
				html = html.replace(/&#60;/g,"<").replace(/&#62;/g,">").replace(/&#34;/g,'"').replace(/width="\d+"/g,'').replace(/height="\d+"/g,'')
				.replace(/<img/g,'<img style="max-width:'+(maxWidth-10)+'px"');
    			$("#franchiser_detail").append(html);
				$(document).attr("title",result.datas.franchiser.franchisee_name+$(document).attr("title"));


    		}
    	});
});